import base64
from io import BytesIO


def base64img(base64Img):
    image_data = base64.b64decode(base64Img)
    imgByte = BytesIO(image_data)
    return imgByte